let proxyObj = {};

proxyObj['/'] = {
    //wbsocket
    ws: false,
    //  目标地址

    //本地
    target: 'http://localhost:8090',
    //  发送请求头host会被设置target
    changeOrigin: true,
    //  不重写请求地址
    pathWewrite: {
        "^/": '/',
    }
}

module.exports = {
    devServer: {
        host: "localhost",
        port: 8080,
        proxy: proxyObj,
    }
}